package com.framework.wz.wutong.utils;

import android.text.TextUtils;

public class UserManage {

    private String uid;
    private String biaohao;
    private static UserManage userManage;

    public static UserManage instance(){
        if (userManage == null) {
            userManage = new UserManage();
        }
        return userManage;
    }


    public String getUid() {
        if (TextUtils.isEmpty(uid)) {
            uid = PreferenceUtils.getInstance().getUid();
        }
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
        PreferenceUtils.getInstance().setUid(uid);
    }

    public String getBiaohao() {
        if (TextUtils.isEmpty(biaohao)) {
            biaohao = PreferenceUtils.getInstance().getBianHao();
        }
        return biaohao;
    }

    public void setBiaohao(String biaohao) {
        this.biaohao = biaohao;
        PreferenceUtils.getInstance().setBianHao(biaohao);
    }
}
